{{--/**
* Created by PhpStrom
* User: 郭碧云
* Date: 2021/7/28 8:50
* Desc:
*/--}}
@extends("layout.admin")

@section("title")
    添加试卷
@endsection

@section("content")
    {{--修改样式--}}
    <style>
        .layui-input-width {
            width: 50% !important;
        }

        /*.layui-treeSelect {
            width: 29% !important;
        }*/

        /*.layui-form-switch {
            border-radius: 6px !important;
        }*/

        /*.layui-form-select .layui-unselect {
            color: #999999;
        }*/

    </style>
    {{--添加--}}
    <form id="create_from" action="{{route('admin.question.create')}}" method="POST" style="margin-top: 15px;"
          class="layui-form">
        {{csrf_field()}}
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input layui-input-width" value="" placeholder="试卷名称" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">组织机构</label>
            <div class="layui-input-block">
                <div id="org" style="width: 50%"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">科目</label>
            <div class="layui-input-block">
                <div id="category" style="width: 50%"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">总分</label>
            <div class="layui-input-block">
                <input type="number" class="layui-input layui-input-width" value="" placeholder="总分" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">及格分数</label>
            <div class="layui-input-block">
                <input type="number" class="layui-input layui-input-width" value="" placeholder="及格分数" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">组卷类型</label>
            <div class="layui-input-block">
                <div id="type" style="width: 50%"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">题型排序</label>
            <div class="layui-input-block">
                <input type="number" class="layui-input layui-input-width" value="" placeholder="及格分数" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">试题配置</label>
            <div class="layui-input-block">

            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn">立即提交</button>
                <button type="button" class="layui-btn layui-btn-normal"
                        onclick='window.location.href="javascript:history.go(-1)"'>返回
                </button>
            </div>
        </div>
    </form>
@endsection

@section('script')
    <script src="{{asset('layui/modules/xm-select.js')}}"></script>
    <script src="{{asset('js/tree/select.js')}}"></script>
    <script>
        layui.use(['form', 'xmSelect'], function () {
            var form = layui.form,
                xmSelect = layui.xmSelect;
        });



    </script>
@endsection
